package com.qianfeng.service.impl;

import com.qianfeng.chaoshi.bean.Users;
import com.qianfeng.chaoshi.dao.UsersDao;
import com.qianfeng.hunan.bean.Menu;
import com.qianfeng.hunan.dao.MenuDao;
import com.qianfeng.service.QianFengService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 2019/12/7
 * Administrator
 * springboot1207
 * 面向对象面向君  不负代码不负卿
 */
@Service
public class QianFengServiceImpl implements QianFengService {
  @Autowired
  private MenuDao menuDao;
  @Autowired
  private UsersDao usersDao;

    @Override
    public List<Users> findusers() {
        return usersDao.findAll();
    }

    @Override
    public List<Menu> findMenus() {
        return menuDao.findAll();
    }
}
